<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/logic','MemberController@logicalTree');//逻辑树
Route::get('member', 'MemberController@index');
Route::get('member/add',['as'=>'member/add','uses'=>'MemberController@addMember']);
Route::post('member/save','MemberController@saveMember');
Route::any('/member/detail/{name}', 'MemberController@detail');
Route::any('/member/test', 'MemberController@test');

Route::any('activity0', 'Activity@activity0');
Route::group(['middleware' => ['activity']], function (){
    Route::any('activity1', 'Activity@activity0');
    Route::any('activity2', 'Activity@activity0');
});


Route::any('test_job', 'MemberController@testJob');


